package com.zm.zmgz.pojo;

import com.zm.zmgz.annotationzm.InformationProhibitedDisplayItem;

import java.util.List;

public class UserBean {
    private String username;

    @InformationProhibitedDisplayItem
    private Integer id;

    private String password;

    @InformationProhibitedDisplayItem
    private String identificationnumber;

    private Integer kind;

    private Integer status;

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username == null ? null : username.trim();
    }

    public Integer getId() {
        return id;
    }

    private String avatar; // 用户头像

    private List<String> authorityBeanList; // 用户权限列表

    @Override
    public String toString() {
        return "UserBean{" +
                "username='" + username + '\'' +
                ", id=" + id +
                ", password='" + password + '\'' +
                ", identificationnumber='" + identificationnumber + '\'' +
                ", kind=" + kind +
                ", status=" + status +
                ", avatar='" + avatar + '\'' +
                ", authorityBeanList=" + authorityBeanList +
                ", code=" + code +
                ", msg='" + msg + '\'' +
                ", token='" + token + '\'' +
                '}';
    }


    public List<String> getAuthorityBeanList() {
        return authorityBeanList;
    }

    public void setAuthorityBeanList(List<String> authorityBeanList) {
        this.authorityBeanList = authorityBeanList;
    }

    public String getAvatar() {
        return avatar;
    }

    public void setAvatar(String avatar) {
        this.avatar = avatar;
    }

    private int code;// 自定义状态码

    private String msg;//登录提示

    private String token; // 用户的token

    public UserBean() {
    }

    public UserBean(String username, Integer id, String password, String identificationnumber, Integer kind, Integer status, int code, String msg, String token) {
        this.username = username;
        this.id = id;
        this.password = password;
        this.identificationnumber = identificationnumber;
        this.kind = kind;
        this.status = status;
        this.code = code;
        this.msg = msg;
        this.token = token;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public String getToken() {
        return token;
    }

    public void setToken(String token) {
        this.token = token;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password == null ? null : password.trim();
    }

    public String getIdentificationnumber() {
        return identificationnumber;
    }

    public void setIdentificationnumber(String identificationnumber) {
        this.identificationnumber = identificationnumber == null ? null : identificationnumber.trim();
    }

    public Integer getKind() {
        return kind;
    }

    public void setKind(Integer kind) {
        this.kind = kind;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }
}